package com.le.tester.onjava8.l_3_6;

import com.le.tester.utils.DateTimeUtilFor8;

import java.math.BigDecimal;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;

/**
 * createTime：2023/2/7 11:25
 * description：填充map,使用pair
 */
public class Pair<K, V> {
    public final K key;

    public final V val;

    public Pair(K key, V val) {
        this.key = key;
        this.val = val;
    }

    public K key() {
        return key;
    }

    public V val() {
        return val;
    }

    public static <K, V> Pair<K, V> make(K k, V v) {
        return new Pair<>(k, v);
    }

    public static void main(String[] args) {
        BigDecimal bigDecimal = BigDecimal.valueOf(0.15);
        System.out.println(bigDecimal.multiply(BigDecimal.valueOf(0.02)));


        BigDecimal bigDecimal1 = new BigDecimal("0.15");
        System.out.println(bigDecimal1.multiply(new BigDecimal("0.02")));
    }
}
